package com.jeeplus.modules.web.entity;

import com.jeeplus.common.utils.base.annotation.Mobile;
import com.jeeplus.core.persistence.DataEntity;
import com.jeeplus.modules.sys.entity.User;
import org.hibernate.validator.constraints.NotBlank;

import java.util.Date;
import java.util.List;

/**
 * @author liangbing
 * @version 1.0
 * @date 2021/3/11 15:49
 * @description 棋牌室
 */
public class YjMahjongHall extends DataEntity<YjMahjongHall> {

    private static final long serialVersionUID = 2L;

    /**
     * 编号
     */
    private String no;

    /**
     * 名称
     */
    @NotBlank(message="名称不能为空")
    private String name;

    /**
     * 电话
     */
    private String phone;

    /**
     * 联系人
     */
    @NotBlank(message = "联系人不能为空")
    private String linkman;

    /**
     * 手机
     */
    @NotBlank(message="手机号不能为空")
    @Mobile
    private String mobile;

    /**
     * 省份
     */
    private String province;

    /**
     * 城市
     */
    private String city;

    /**
     * 区
     */
    private String district;

    /**
     * 省市区
     */
    //@NotBlank(message="省市区不能为空")
    private String region;

    /**
     * 详细地址
     */
    @NotBlank(message="详细地址不能为空")
    private String address;

    /**
     * 二维码
     */
    private String qrcode;

    /**
     * 创建者（业务员） open-id
     */
    private String openid;

    /**
     * 创建者（业务员）手机号
     */
    private String salesmanPhone;

    /**
     * 创建者（业务员）
     */
    private YjSalesman salesman;

    /**
     * 是否开通呼叫 0-否 1-是
     */
    private Integer isOpenCall;

    /**
     * 是否开通呼叫 后台管理页面用
     */
    private String isOpenCallVal;

    /**
     * 房间数
     */
    private Integer rooms;

    /**
     * 服务生人数
     */
    private Integer waiters;

    /**
     * 棋牌室房间列表
     */
    private List<YjMahjongHallRoom> mahjongHallRoomList;

    /**
     * 棋牌室服务生列表
     */
    private List<YjMahjongHallWaiters> mahjongHallWaitersList;

    public YjMahjongHall(){

    }

    public YjMahjongHall(String id) {
        this.setId(id);
    }

    public YjMahjongHall(String name, String mobile) {
        this.setName(name);
        this.setMobile(mobile);
    }

    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getLinkman() {
        return linkman;
    }

    public void setLinkman(String linkman) {
        this.linkman = linkman;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getQrcode() {
        return qrcode;
    }

    public void setQrcode(String qrcode) {
        this.qrcode = qrcode;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public String getSalesmanPhone() {
        return salesmanPhone;
    }

    public void setSalesmanPhone(String salesmanPhone) {
        this.salesmanPhone = salesmanPhone;
    }

    public YjSalesman getSalesman() {
        return salesman;
    }

    public void setSalesman(YjSalesman salesman) {
        this.salesman = salesman;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getDistrict() {
        return district;
    }

    public void setDistrict(String district) {
        this.district = district;
    }

    public String getRegion() {
        return region;
    }

    public void setRegion(String region) {
        this.region = region;
    }

    public Integer getIsOpenCall() {
        return isOpenCall;
    }

    public void setIsOpenCall(Integer isOpenCall) {
        this.isOpenCall = isOpenCall;
    }

    public String getIsOpenCallVal() {
        return isOpenCallVal;
    }

    public void setIsOpenCallVal(String isOpenCallVal) {
        this.isOpenCallVal = isOpenCallVal;
    }

    public Integer getRooms() {
        return rooms;
    }

    public void setRooms(Integer rooms) {
        this.rooms = rooms;
    }

    public Integer getWaiters() {
        return waiters;
    }

    public void setWaiters(Integer waiters) {
        this.waiters = waiters;
    }

    public List<YjMahjongHallRoom> getMahjongHallRoomList() {
        return mahjongHallRoomList;
    }

    public void setMahjongHallRoomList(List<YjMahjongHallRoom> mahjongHallRoomList) {
        this.mahjongHallRoomList = mahjongHallRoomList;
    }

    public List<YjMahjongHallWaiters> getMahjongHallWaitersList() {
        return mahjongHallWaitersList;
    }

    public void setMahjongHallWaitersList(List<YjMahjongHallWaiters> mahjongHallWaitersList) {
        this.mahjongHallWaitersList = mahjongHallWaitersList;
    }

    @Override
    public void preInsert() {
        super.preInsert();
    }

    @Override
    public void preUpdate() {
        super.preUpdate();
    }

    @Override
    public String getRemarks() {
        return super.getRemarks();
    }

    @Override
    public void setRemarks(String remarks) {
        super.setRemarks(remarks);
    }

    @Override
    public User getCreateBy() {
        return super.getCreateBy();
    }

    @Override
    public void setCreateBy(User createBy) {
        super.setCreateBy(createBy);
    }

    @Override
    public Date getCreateDate() {
        return super.getCreateDate();
    }

    @Override
    public void setCreateDate(Date createDate) {
        super.setCreateDate(createDate);
    }

    @Override
    public User getUpdateBy() {
        return super.getUpdateBy();
    }

    @Override
    public void setUpdateBy(User updateBy) {
        super.setUpdateBy(updateBy);
    }

    @Override
    public Date getUpdateDate() {
        return super.getUpdateDate();
    }

    @Override
    public void setUpdateDate(Date updateDate) {
        super.setUpdateDate(updateDate);
    }

    @Override
    public String getDelFlag() {
        return super.getDelFlag();
    }

    @Override
    public void setDelFlag(String delFlag) {
        super.setDelFlag(delFlag);
    }
}
